package com.easylinkin.linkappapi.device.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.easylinkin.linkappapi.common.model.RequestModel;
import com.easylinkin.linkappapi.device.dto.EnvironmentalAreaDTO;
import com.easylinkin.linkappapi.device.dto.EnvironmentalAreaStatisticsDTO;
import com.easylinkin.linkappapi.device.entity.EnvironmentalArea;

import java.util.List;

/**
 * <p>
 * 环境管理区域表 服务类
 * </p>
 *
 * @author Xiaoyang
 * @since 2022-09-19
 */
public interface EnvironmentalAreaService extends IService<EnvironmentalArea> {

  void addArea(EnvironmentalAreaDTO environmentalArea);

  void updateOne(EnvironmentalAreaDTO environmentalArea);

  void delBatch(List<Integer> areaIds);

  List<EnvironmentalAreaDTO> queryTree(EnvironmentalAreaDTO environmentalArea);

  List<EnvironmentalAreaDTO> queryList(EnvironmentalAreaDTO environmentalArea);

  List<EnvironmentalAreaStatisticsDTO> getEnvironmentalAreaStatistics(EnvironmentalAreaDTO areaDTO);

  List<EnvironmentalAreaStatisticsDTO> countAreaStatistics(EnvironmentalAreaDTO areaDTO);

  Page countFirstLevelAreaStatistics(RequestModel<EnvironmentalAreaDTO> restModel);

  void initData();
}
